#ifndef EMBED_TEXT_H
#define EMBED_TEXT_H

#include <coreai/embedding/embedding.h>
#include <string>
#include <vector>
#include <float.h>
#include <iostream>



#include <fstream>

using  namespace std;

class EmbedText {

public:

    EmbedText();
    ~EmbedText();

    void embed_file_data(string file_path, const char* destination_path);

    void embed_str_data(string text);

    void save_vector_to_file(const char* filename, float *vector, int len, const char* w_or_a);

private:
    TextEmbeddingSession* session;
    EmbeddingResult* result;
    int error_code;
    const char *error_message;
    float *vector_result;
    int len;
    char *info;
};

#endif